

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta charset="utf-8" /><meta name="format-detection" content="telephone=no" /><meta name="viewport" content="initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" /><meta name="apple-mobile-web-app-status-bar-style" content="black" /><meta name="apple-mobile-web-app-title" content="菜虫网" /><meta name="apple-mobile-web-app-capable" content="yes" /><meta name="keywords" content="&lt;%= Page.Items[MobileHelper.Keyword]%>" /><meta name="description" content="&lt;%= Page.Items[MobileHelper.Description] %>" />
    <link href="http://m.caichongwang.com/images/logo.png" rel="apple-touch-icon-precomposed" />
    <link href="http://m.caichongwang.com/images/Icon@2x.png" sizes="114x114" rel="apple-touch-icon-precomposed" />
    <meta name="author" content="晓东,新伟,永青" /><title>
	天天惠
</title>
    <link href="http://m.caichongwang.com/css/common.css" type="text/css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/index.css" type="text/css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/icons.css" type="text/css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/product.css" type="text/css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/ucenter.css" type="text/css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/add2home.css" type="text/css" rel="stylesheet" />
    
    
    <link href="http://m.caichongwang.com/css/subpages.css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/blackbox.css" rel="stylesheet" />

</head>
<body>
    <div id="main">
        
    <header class="main-header">
          <h1 class="logo"><a href="http://m.caichongwang.com/" title="菜虫网-享受健康新生活">菜虫网</a> </h1>
        <div class="list-head-title">
            <h2>天天惠</h2>
        </div>
        <div class="top-shortcuts">
            <ul>
                <li class="ucenter"><a href="http://m.caichongwang.com/ucenter/index.aspx">用户中心</a> </li>
                <li class="cates"><a href="http://m.caichongwang.com/categories.aspx">全部分类</a> </li>
                <li class="cart" id="shoppingcart"><a href="http://m.caichongwang.com/shopcart.aspx">购物车</a> </li>
            </ul>
        </div>
    </header>
    
    <section class="order">
        <ul class="order-type">
             <li data-orderby="10" data-sort="0">价格<i class="triangle"  >▼</i></li>
            <li  data-orderby="20" data-sort="0" class="order-current" >销量<i class="triangle">▼</i></li>
            <li  data-orderby="15" data-sort="0">时间<i class="triangle" >▼</i></li>
        </ul>
    </section>
     <span class="ShareBody" style="display:none;">每天都有新优惠,让你每天都有不一样的惊喜!</span>
     <span class="ShareImg" style="display:none;">http://test.caichongwang.com/images/weixinIndex.jpg</span>
    <input type="hidden" value="0" id="categoryid" />
    <section class="tuan-list">
        
    </section>
    <section id="loading">
        <img src="http://m.caichongwang.com/images/loading.gif" />
    </section>

    <script src="http://m.caichongwang.com/js/jquery.js" type="text/javascript"></script>
    <script src="http://m.caichongwang.com/js/common.js" type="text/javascript"></script>
    <script src="http://m.caichongwang.com/js/subpage.js" type="text/javascript"></script>
    <script src="http://m.caichongwang.com/js/jquery.timers.js" type="text/javascript"></script>
    <script src="http://m.caichongwang.com/js/jquery.blackbox.js" type="text/javascript"></script>
    <script src="http://m.caichongwang.com/js/product.js"></script>
    <script>

        var pageindex = 0, orderby = 15, sort = 0, pagesize = 10, isLoading = false,
            categoryid = $("#categoryid").val();

        $(".order-type li").each(function (i, v) {
            
            $(v).click(function () {
                pageindex = 0;
                orderby = $(this).data("orderby");
                sort = parseInt($(this).data("sort"));

                if (sort === 0) {
                    $(this).find("i").text("▲");
                    $(this).data("sort", 1);
                    $(this).siblings("li").data("sort", 0).find("i").text("▼");

                } else {
                    $(this).find("i").text("▼");
                    $(this).data("sort", 0)
                    $(this).siblings("li").data("sort", 1).find("i").text("▲");
                }
                $(".tuan-list").empty();
                LoadData();


            })
        })
        function LoadData() {
            $("#loading").show()
            isLoading = true;
            $.get(baseuri + "Service/data.asmx/GetGroupBuyList?categoryid=" + categoryid + "&orderby=" + orderby + "&sort=" + sort + "&pageindex=" + pageindex + "&pagesize=" + pagesize, function (data) {
                if (data.Msg === 'Ok') {
                    for (var i in data.Obj) {
                        var item = data.Obj[i];
                        var dom = '<dl>'
                                + '<dt><a href="' + baseuri + 'groupbuyingdetail.aspx?productId=' + item.GroupPurchaseID + '" class="tuan-tit nowrap">' + item.Title + '</a></dt>'
                                + '<dd>'
                                + '    <div class="tuan-img"><a href="' + baseuri + 'groupbuyingdetail.aspx?productId=' + item.GroupPurchaseID + '" class="tuan-tit nowrap">'  
                                + '        <img src="' + item.ImageUrl + '" /><span class="tuan-remains"></span><input type="hidden" class="time_left" value="' + item.EndTime + '">'
                                + '    </a></div>'
                                + '    <span class="tuan-infos">'
                                + '        <table>'
                                + '            <tr>'
                                + '                <td>特惠价：</td>'
                                + '                <td class="tuan"><del>' + item.OldPrice + '</del><b>' + item.DiscountPrice + '</b></td>'
                                + '            </tr>'
                                + '            <tr>'
                                + '                <td>折扣：</td>'
                                + '                <td>' + item.Discount + '折</td>'
                                + '            </tr>'
                                + '            <tr>'
                                + '                <td>已售出：</td>'
                                + '                <td>' + item.Selaed + '件</td>'
                                + '            </tr>'
                                + '            <tr>'
                                + '                <td>配送：</td>'
                                + '                <td>仅限广东省</td>'
                                + '            </tr>'
                                + '        </table>'
                                + '        <a href="javascript:void(0);" class="tuan-buyit" data-pid="' + item.ProductId + '">购买</a>'
                                + '    </span></dd>'
                                + '<dd class="tuan-description"><span>'
                                + '    <p class="desc-tit">本单简介：</p>'
                                + '    <p>' + item.ShortDescription + '</p>'
                                + '</span></dd></dl>';

                        $(".tuan-list").append(dom);
                    }
                    pageindex++;
                    $("#loading").hide();
                    Timer();
                    BindGroupBuyBtn();
                    isLoading = false;
                }
                else if (data.Code === 102) {
                    isLoading = true;
                    $("#loading").hide();
                } else {
                    isLoading = false;
                }
            })

        }

        function onScroll(event) {
            // Only check when we're not still waiting for data.
            if (!isLoading) {
                // Check if we're within 100 pixels of the bottom edge of the broser window.
                var closeToBottom = ($(window).scrollTop() + $(window).height() > $(document).height() - 100);
                if (closeToBottom) {
                    LoadData();
                }
            }
        };
        LoadData();
        $(window).scroll(onScroll);
    </script>



        <!--固定搜索-->
        <div id="bottom-sch" class="sch-box search-fixed">
            <form id="f2" action="http://m.caichongwang.com/productlist.aspx" method="get">
                <div class="search layout mt20 mb20">
                    <input type="search" placeholder="奇异果" id="main-sch-bottom" name="keyword" />
                    <input type="submit" id="sch-submit-bottom" class="s-submit" value="" />
                </div>
            </form>
        </div>
        <!--固定搜索end-->

        <!--浮动按钮-->
        <div class="f-menu">
            <div class="floatmenu">
                <i class="menuinner"></i>
            </div>
            <div class="circle hide">
                <div class="c-ucenter"><a href="http://m.caichongwang.com/ucenter/index.aspx" class="c-ucLink"></a></div>
                <div class="c-sch c-menu"><a href="http://m.caichongwang.com/productlist.aspx" class="c-schlink"></a></div>
                <div class="c-order c-menu"><a href="http://m.caichongwang.com/ucenter/orders.aspx" class="c-orderlink"></a></div>
                <div class="c-service  c-menu"><a href="javascript:void(0)" class="c-servicelink"></a></div>
                <div class="c-shopcart c-menu"><a href="http://m.caichongwang.com/shopcart.aspx" class="c-cartlink"></a></div>
            </div>
        </div>
        <!--浮动按钮end-->
        <footer class="bottom">
            <div class="bottom-shortcuts layout">
                <ul>
                    <li><i class="login"></i><a href="http://m.caichongwang.com/logout.aspx">退出</a></li>
                    <li class="l-spacing"></li>
                    
                    <li class="fr"><i class="cart"></i><a href="http://m.caichongwang.com/ShopCart.aspx">购物车</a></li>
                </ul>
            </div>
            <div class="version">
                <span id="backtotop"><a href="javascript:void(0);"><i class="gray">▲</i>返回顶部</a></span>
		         <p> <span ><a href="http://m.caichongwang.com/">标准版</a>  <a href="http://www.caichongwang.com/?from=wap">电脑版</a> </span></p>
                <p class="copy">
                    菜虫网—国内最专业的生鲜产品网上商城<br />
                    经营许可备案号：粤B2-20120403<br />
                    菜虫网版权所有
                </p>
            </div>
        </footer>
        
    </div>
</body>
</html>
